<?php
/* Smarty version 3.1.29, created on 2016-05-25 06:33:52
  from "F:\AppServ\www\MVC\three\tpl\admin\newslist.html" */

if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
  'has_nocache_code' => false,
  'version' => '3.1.29',
  'unifunc' => 'content_57454750b8e892_13554661',
  'file_dependency' => 
  array (
    'a46169d8d42ff3812002f523c68c146bae0aff8c' => 
    array (
      0 => 'F:\\AppServ\\www\\MVC\\three\\tpl\\admin\\newslist.html',
      1 => 1464158031,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
    'file:admin/header.html' => 1,
  ),
),false)) {
function content_57454750b8e892_13554661 ($_smarty_tpl) {
$_smarty_tpl->smarty->ext->_subtemplate->render($_smarty_tpl, "file:admin/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0, false);
?>

<!--aside nav-->
<aside class="lt_aside_nav content mCustomScrollbar">
 <h2><a href="admin.php?controller=admin">起始页</a></h2>
 <ul id="aaa">
  <li>
   <dl>
    <dt>实时新闻</dt>
    <!--当前链接则添加class:active-->
    <dd><a href="admin.php?controller=admin&method=newsadd">添加新闻</a></dd>
    <dd><a href="admin.php?controller=admin&method=newslist" class="active">管理新闻</a></dd>
   </dl>
  </li>
 </ul>
</aside>


<section class="rt_wrap content mCustomScrollbar">
 <div class="rt_content" style="margin:50px auto 0px; width:80%;">
    
    
      
     <section>
      <h2><strong style="color:grey;">添加新闻</strong></h2>      
       <table class="table">
       <tr>
        <th>id</th>
        <th>标题</th>
        <th>作者</th>
        <th>操作</th>
       </tr>
       <?php
$_from = $_smarty_tpl->tpl_vars['data']->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
$__foreach_value_0_saved_item = isset($_smarty_tpl->tpl_vars['value']) ? $_smarty_tpl->tpl_vars['value'] : false;
$_smarty_tpl->tpl_vars['value'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['value']->_loop = false;
foreach ($_from as $_smarty_tpl->tpl_vars['value']->value) {
$_smarty_tpl->tpl_vars['value']->_loop = true;
$__foreach_value_0_saved_local_item = $_smarty_tpl->tpl_vars['value'];
?>
       <tr>
        <td><?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['value']->value['title'];?>
</td>
        <td><?php echo $_smarty_tpl->tpl_vars['value']->value['adtuor'];?>
</td>
        <td>
        	<a href='admin.php?controller=admin&method=newsadd&id=<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
'>修改</span>
        	<a href='admin.php?controller=admin&method=newsdel&id=<?php echo $_smarty_tpl->tpl_vars['value']->value['id'];?>
'>删除</span>
        </td>
       </tr>
	  <?php
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_0_saved_local_item;
}
if (!$_smarty_tpl->tpl_vars['value']->_loop) {
?>
	   <tr>
        <td colspan=4>暂无新闻</td>
       </tr>
      <?php
}
if ($__foreach_value_0_saved_item) {
$_smarty_tpl->tpl_vars['value'] = $__foreach_value_0_saved_item;
}
?>
      </table>
     </section>
     
   <?php }
}
